<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>Konva</title>
		<script src="https://unpkg.com/konva@7.0.3/konva.min.js"></script>
  </head>
  <body>
    <div id="container"></div>
		<!-- Knova官网 https://konvajs.github.io/ -->
    <script>
      // 创建舞台
      var stage = new Konva.Stage({
      	container: 'container',
      	width: window.innerWidth,
      	height: window.innerHeight
      })
      
      // 创建层
      var layer = new Konva.Layer()
      stage.add(layer)
      
      // 中心点坐标
      var cenX = stage.width() / 2
      var cenY = stage.height() / 2
    </script>
  </body>
</html>